<template>
  <div>
    <ul>
      <li v-for="(item, index) in $store.state.list" :key="index">
        <input type="checkbox" v-model="item.isCheck" /> &#x3000; {{ item.msg }}
        <button @click="del(index)">删除</button>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  methods: {
    del(i) {
      this.$store.commit("delect", i);
    },
  },
};
</script>